package lambda_expression.method_reference;

/**
 * 通过构造器引用创建对象
 */
public class ConstructorReferTest {
    public static void main(String[] args) {
        System.out.println(buildStudent("赵子龙", 20, Student::new));
    }
    private static Student buildStudent(String name, int age, StudentBuilder builder) {
        return builder.build(name, age);
    }
}
